package history.link.singlylinklist;

/**
 * @author czt
 * @version 1.0
 * @since 2024/10/24
 */
public class SinglyLinkedListTest {
    public static void main(String[] args) {
        SinglyLinkedList singlyLinkedList = new SinglyLinkedList();
//        singlyLinkedList.addFirst(1);
//        singlyLinkedList.addFirst(2);
//        singlyLinkedList.addFirst(3);
//        singlyLinkedList.addFirst(4);
//        singlyLinkedList.addFirst(5);
        singlyLinkedList.addLast(1);
        singlyLinkedList.addLast(2);
        singlyLinkedList.addLast(3);
        singlyLinkedList.addLast(4); // 3
        singlyLinkedList.addLast(5);

        singlyLinkedList.insert(0, 10);

        singlyLinkedList.loop3();
//        singlyLinkedList.loop2();

    }
}
